<?php
namespace Core\Debugger;

/**
 * Represents an entry of the logger
 * @namespace Core\Debugger
 * @author Raphael DE FREITAS (RaphyTheGeek@gmail.com)
 * @version 1.0
 * @see Logger
 */
class LogEntry
{
	protected $_AlertLevel = null;
	
	protected $_Message = null;
	
	/**
	 * Initializes a new instance of the LogEntry class with the parameters specified
	 * @param const $level Level of the entry
	 * @param string $message Message of the entry
	 */
	public function __construct($message, $level = AlertLevel::Normal) {
		$this->_AlertLevel = $level;
		$this->_Message = $message;
	}
	
	/**
	 * Get the object AlertLevel for this entry
	 * @return const
	 */
	public function getLevel() {
		return $this->_AlertLevel;
	}
	
	/**
	 * Get the message of this entry
	 * @return string
	 */	
	public function getMessage() {
		return $this->_Message;
	}

}
?>